package com.cainli.szbus.data.model;

import android.os.Parcel;
import android.os.Parcelable;

/**
 *result_num	 int	 结果数量	
 *web_url	 	 string	 爱帮web站对应url	
 *wap_url	     string	 爱帮wap站对应url	
 *name	         string	 站点名称	
 *xy	         string	 站点坐标	 半角逗号,(英文逗号)分隔
 *dist			 int 	 距离输入经纬度坐标的距离	 单位：米
 *line_names	 string	 途径该站点的线路名称	 半角分号;(英文分号)分隔
 * @author cainli
 */
public class SurroundingBusStats implements Parcelable {
	public String name;
	public String xy;
	public int dist;
	public String lineNames;
	public SurroundingBusStats() {
	}

	private SurroundingBusStats(Parcel in) {
		name = in.readString();
		xy = in.readString();
		dist = in.readInt();
		lineNames = in.readString();
	}

	@Override
	public int describeContents() {
		// TODO Auto-generated method stub
		return 0;
	}

	@Override
	public void writeToParcel(Parcel dest, int flags) {
		dest.writeString(name);
		dest.writeString(xy);
		dest.writeInt(dist);
		dest.writeString(lineNames);
	}

	public static final Parcelable.Creator<SurroundingBusStats> CREATOR = new Parcelable.Creator<SurroundingBusStats>() {

		@Override
		public SurroundingBusStats createFromParcel(Parcel source) {
			return new SurroundingBusStats(source);
		}

		@Override
		public SurroundingBusStats[] newArray(int size) {
			return new SurroundingBusStats[size];
		}
	};
	@Override
	public String toString() {
		return "SurroundingBusStats [name=" + name + ", xy=" + xy + ", dist="
				+ dist + ", lineNames=" + lineNames + "]";
	}
	
}
